<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="jquery-ui.min.css"/>
		<style type="text/css">
			.box{
				width: 200px;
				height: 200px;
				background-color: #007FFF;
			}
		</style>
	</head>
	<body>
		<div class="box">
			
		</div>
		<!-- 基于jquery，所以还要引jQuery的js -->
		<script src="jquery-3.5.1.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="jquery-ui.min.js" type="text/javascript" charset="utf-8"></script>
		
		<script type="text/javascript">
			// 一句代码实现拖拽
			$('.box').draggable();
			
		</script>
		
		
	</body>
</html>
